
export default [
  {
    path: '/',
    redirect: '/welcome'
  },
  {
    path: '/login',

    component: resolve => require(['@/views/login'], resolve)
  },
  {
    path: '/welcome',
    component: resolve => require(['@/views/main'], resolve),
    meta: { title: '控制台' },
    children: [
      {
        path: '/',
        component: resolve => require(['@/views/home'], resolve),
        meta: { title: '控制台' },
        hidden: true
      },
    ]
  },
  {
    path: '/system',
    component: resolve => require(['@/views/main'], resolve),
    redirect: '/system/admin',
    meta: { title: '系统管理' },
    children: [
      {
        path: 'admin',
        component: resolve => require(['@/views/admin'], resolve),
        meta: { title: '管理员管理' },
      },
      {
        path: 'menu',
        component: resolve => require(['@/views/menu'], resolve),
        meta: { title: '菜单管理' },
      },
      {
        path: 'group',
        component: resolve => require(['@/views/group'], resolve),
        meta: { title: '分组管理' },
      },

    ]
  },
  {
    path: '/editor',
    component: resolve => require(['@/views/main'], resolve),
    meta: { title: '富文本' },
    children: [
      {
        path: '/',
        component: resolve => require(['@/views/editor'], resolve),
        meta: { title: '富文本' },
      }
    ]
  },
  {
    path: '*',
    component: () => import('@/views/404')
  }

]


